<template>
    <div class="main">
        <list :list="list" @touchEnd="courseSearch(page+1)"></list>
    </div>
</template>
<style lang="less" scoped>
// .main {

// }
</style>
<script>
import list from '@/components/list/list'
export default {
    components: {
        list
    },
    data () {
        return {
            list: [],
            value: '',
            page: 1
        }
    },
    mounted () {
        this.courseSearch()
    },
    methods: {
        courseSearch (page) {
            this.page = page || 1
            this.$model.comm.my({ page: this.page }).then(res => {
                this.list = this.list.concat((res.data||{}).data || [])
            })
        }
    }
};
</script>
